package cn.dt70.dao.appInfo;

import cn.dt70.pojo.AppInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppInfoMapper {

//  重新app信息列表
    List<AppInfo> qryAppInfoAll(@Param("start") int start,
                                @Param("end") int end,
                                @Param( "querySoftwareName" )String querySoftwareName,
                                @Param( "status" )Integer status,
                                @Param( "flatformId" )Integer flatformId,
                                @Param( "categoryLevel1" )Integer categoryLevel1,
                                @Param( "categoryLevel2" )Integer categoryLevel2,
                                @Param( "categoryLevel3" )Integer categoryLevel3)throws Exception;

//重新app总个数
    int qryAppCount( @Param( "querySoftwareName" )String querySoftwareName,
                     @Param( "status" )Integer status,
                     @Param( "flatformId" )Integer flatformId,
                     @Param( "categoryLevel1" )Integer categoryLevel1,
                     @Param( "categoryLevel2" )Integer categoryLevel2,
                     @Param( "categoryLevel3" )Integer categoryLevel3)throws Exception;

//查看App信息
    AppInfo getAppInfo(@Param("id")Integer id) throws Exception;

    //根据app信息表id修改app状态信息status（进行上架，下架）
    AppInfo updateAppInfoById(@Param("id") long id,@Param("status") long status) throws Exception;

    //根据id删除信息
    int del(@Param("appId")int appId)throws Exception;
}
